package com.topideal.supplychain.hades.master.model;

import com.topideal.supplychain.framework.domain.BaseEntity;

enum BusinessMode {
    BBC("10", "BBC"), BC("20", "BC"), BAOLIU("3", "保留"), PERSONAL("4", "个人物品");

    private String code;
    private String value;

    private BusinessMode(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}

enum CarrierState {
    INACTIVE("0", "无效"), ACTIVE("1", "有效");

    private String code;
    private String value;

    private CarrierState(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}


public class Carrier extends BaseEntity {

    private static final long serialVersionUID = 6326998996357965576L;

    private Long id;

    /**
     * 配送商CODE
     */
    private String code;

    /**
     * 配送商名称
     */
    private String name;

    /** 配送商优先级 **/
    private Integer level;

    /**
     * kd100编码
     */
    private String kd100Code;

    /**
     * 快递鸟编码
     */
    private String kdniaoCode;

    /**
     * 外部承运商编码
     */
    private String outCarrierCode;

    /**
     * 状态: 0 无效，1有效
     */
    private Integer state;

    /**
     * 0：未删除，1已删除。
     */
    private String isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getOutCarrierCode() {
        return outCarrierCode;
    }

    public void setOutCarrierCode(String outCarrierCode) {
        this.outCarrierCode = outCarrierCode == null ? null : outCarrierCode.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getKd100Code() {
        return kd100Code;
    }

    public void setKd100Code(String kd100Code) {
        this.kd100Code = kd100Code;
    }

    public String getKdniaoCode() {
        return kdniaoCode;
    }

    public void setKdniaoCode(String kdniaoCode) {
        this.kdniaoCode = kdniaoCode;
    }
}
